package cn.ceplc.nlu.admin.domain;

import cn.ceplc.nlu.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@Entity
@Data
@EqualsAndHashCode(callSuper = false)
public class Menu extends BaseEntity<Long> {


    private static final long serialVersionUID = -3827270198777799345L;

    private String name;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "role_id")
    private Role role;


}
